package com.example.demo.entity;

import java.util.Date;

import javax.persistence.Entity;

import org.springframework.format.annotation.DateTimeFormat;

import com.example.demo.custom.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
 * 售后仓库录入
 * @author 陶国庆
 *
 */
@Entity
public class AftersalesWarehouse extends BaseEntity<Integer>{
	
	private Date time;					//售后仓库录入时间
	private String comewarehouse;		//出库类型
	private String enterwarehouse;		//入库类型
	private String comeparts;			//出库配件类别
	private String enterparts;			//入库配件类别
	private Integer comemoney;			//出库金额
	private Integer entermoney;			//入库金额
	private Date beginDate;				//起始日期
	private Date endDate;				//结束日期
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getComewarehouse() {
		return comewarehouse;
	}
	public void setComewarehouse(String comewarehouse) {
		this.comewarehouse = comewarehouse;
	}
	public String getEnterwarehouse() {
		return enterwarehouse;
	}
	public void setEnterwarehouse(String enterwarehouse) {
		this.enterwarehouse = enterwarehouse;
	}
	public Integer getComemoney() {
		return comemoney;
	}
	public void setComemoney(Integer comemoney) {
		this.comemoney = comemoney;
	}
	public Integer getEntermoney() {
		return entermoney;
	}
	public void setEntermoney(Integer entermoney) {
		this.entermoney = entermoney;
	}
	public String getComeparts() {
		return comeparts;
	}
	public void setComeparts(String comeparts) {
		this.comeparts = comeparts;
	}
	public String getEnterparts() {
		return enterparts;
	}
	public void setEnterparts(String enterparts) {
		this.enterparts = enterparts;
	}
	@Override
	public String toString() {
		return "AftersalesWarehouse [time=" + time + ", comewarehouse=" + comewarehouse + ", enterwarehouse="
				+ enterwarehouse + ", comemoney=" + comemoney + ", entermoney=" + entermoney + "]";
	}
	public AftersalesWarehouse() {
		super();
	}
	public AftersalesWarehouse(Integer id) {
		super(id);
	}
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
}
